/*
 * Copyright (c) 2019, Beijing Yonyou Audit Software. All rights reserved.
 *
 */
package publish;

/**
 * @author 若雨成霜
 * @date 2019-11-25
 * @description
 */
public class PublisherOne<M> implements IPublisher<M> {
    private String name;

    public PublisherOne(String name) {
        super();
        this.name = name;
    }

    @Override
    public void publish(SubscriberPublish subscriberPublish, Object message, boolean isInsertMessage) {
        subscriberPublish.publish(this.name, message, isInsertMessage);
    }
}
